package com.wn.sk.product.core.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.wn.sk.product.core.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wn.sk.product.core.vo.SeckillVo;

import java.util.List;

/**
 * <p>
 * 商品表 服务类
 * </p>
 *
 * @author yellow docker
 * @since 2022-09-02
 */
public interface IProductService extends IService<Product> {

    List<SeckillVo> listSkProduct() throws JsonProcessingException;

    /**
     * 查询 为开始的秒杀商品的信息
     * @param unStart
     * @return
     */
    List<SeckillVo> findSeckillByStatus(Integer unStart);
}
